import request from '@/config/axios'

//获得特色景点分页
export const getScenicspotPage = async (data) => {
  return await request.post({ url: '/countryside/visitorCenter/getScenicPointPage', data })
}
//获取特色景点详情
export const getScenicspotdetail = async (id) => {
  return await request.get({ url: '/countryside/visitorCenter/getScenicPoint?id=' + id })
}

//获取口碑美食分页
export const getFoodPage = async (data) => {
  return await request.post({ url: '/countryside/visitorCenter/getDelicacyPage', data })
}
//获取口碑美食详情
export const getFooddetail = async (id) => {
  return await request.get({ url: '/countryside/visitorCenter/getDelicacy?id=' + id })
}

//获取特色民宿分页
export const getHomestayPage = async (data) => {
  return await request.post({ url: '/countryside/visitorCenter/getHomestayPage', data })
}
//获取特色民宿详情
export const getHomestaydetail = async (id) => {
  return await request.get({ url: '/countryside/visitorCenter/getHomestay?id=' + id })
}

//批量删除
export const deleteVisitorList = async (params) => {
  return await request.delete({
    url: `/countryside/visitorCenter/delete`,
    params
  })
}
//审核游客中心
export const getVisitorcenterInfo = async (data) => {
  return await request.post({ url: '/countryside/visitorCenter/audit', data })
}